<template>
    <div id="guide">
        <!-- :aspect-ratio="1335/750" -->
        <swiper width="100%" :aspect-ratio="ratio" dots-position="center">
            <swiper-item>
                <img src="/static/z39h5/images/guide/yindaoye1.png" alt="" />
            </swiper-item>
            <swiper-item>
                <img src="/static/z39h5/images/guide/yindaoye1.png" alt="" />
            </swiper-item>
            <swiper-item>
                <img src="/static/z39h5/images/guide/yindaoye1.png" alt="" />
                <router-link :to="{path:'/m_index'}">
                    <div class="now-open" @click.native="go('/m_index')">
                        立即开启
                    </div>
                </router-link>
            </swiper-item>
        </swiper>
    </div>
</template>
<script>
import {
    Swiper,
    SwiperItem
} from 'vux'

export default {
    components: {
        Swiper,
        SwiperItem
    },
    created() {
        var w = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
        var h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
        this.width = w;
        this.height = h;
        this.ratio = (h - 20) / w;
        console.log("w " + w + " " + h);
    },
    data() {
        return {
            width: 375,
            height: 667,
            ratio: 1335 / 750
        }
    }
}
</script>
<style scoped>


#guide {
    background-color: #fff;
    width: 100%;
    height: 100%;
}

.now-open {
    position: absolute;
    bottom: 40px;
    background: #ff7011;
    color: #fff;
    border-radius: 15px;
    width: 100px;
    margin-left: -50px;
    left: 50%;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
}
</style>
